#include <vector>
#include <cstdlib>
#include "SCVMCommand.hpp"

#include<exception>

using namespace std;
using namespace SC;

int main(int argc, char *argv[])
{
	SCVMCommand vm_command;
	vector<string> arguments;
	for (int i=0; i<argc; ++i)
		arguments.push_back(string(argv[i]));
	try {
		if (vm_command.Command(arguments))
			return EXIT_SUCCESS;
		else
			return EXIT_FAILURE;
	}
	catch (exception & e) {
		cout << "Exception in Main: "  << e.what() << endl;
	}
	return EXIT_FAILURE;
}
